from random import randint
class Die():
    def __init__(self):      #6面的骰子
        self.sides = 6
    def roll_die(self):
        x = randint(1, 6)
        self.sides = x
        return self.sides
    def age_10(self):
        for i in range(10):
            print(self.roll_die())

#########################################

    def roll_die10(self):    # 10面的骰子
        x = randint(1, 10)
        self.sides = x
        return self.sides

    def age_10s(self):
        for i in range(10):
            print(self.roll_die10())
my_sime = Die()
print(my_sime.roll_die())
